package com.wish.blessingroad.config;

/**
 * TODO:DOCUMENT ME!
 *
 * @author DongHaocheng
 * @date 2019/2/23
 */
public class helps {

     /*
    public Object selectBlessing(@RequestParam final String userId,
            @RequestParam final LocalDateTime excuteDate,
            @RequestParam final LocalDateTime createDate,
            @RequestParam final Integer type,
            @RequestParam final Integer status,
            @RequestParam final Integer pusaName) {
*/
      /*@ResponseBody
    @RequestMapping(value = "/testL")
    public Object listSelectLambda(@Valid User user) {
        *//*LOG.warn("1111111111111111warn");
        LOG.info("22222222222222222info");
        if(1>0) {
            LOG.error("eeeeeeeeeeeeeeeeeeee");
            throw new ServiceException(20000, "登录失败，请稍后重试！");
        }*//*

        return new ResponseResult<>(userServiceImpl.listSelectLambda()).success();

    }
    @ResponseBody
    @RequestMapping(value = "/testRedis")
    public Object getRedis(String a) {
        //jedisUtil.set("aaa","工工工工工");
        //return jedisUtil.get("aaa");
        return a;
    }*/
     /*
     * update(@Param("et") T var1, @Param("ew") Wrapper<T> var2);
     * 第一个参数是要更新的对象，第二个参数是更新格式
     * 对于setSql()方法，这里指定的属性值会覆盖更新对象中对应的属性值，没有指定的属性值继续按照更新对象中的值更新数据库
     * 同时对于字符串类型必须要使用单引号，否则会报错；eg:setSql("name='谢逊'")

        mapper.update(user,new UpdateWrapper<User>().setSql("name = '" + user.getName() + "'").eq("id",1L));
   */
     /*
    setSqlSelect	设置 SELECT 查询字段
where	WHERE 语句，拼接 + WHERE 条件
and	AND 语句，拼接 + AND 字段=值
andNew	AND 语句，拼接 + AND (字段=值)
or	OR 语句，拼接 + OR 字段=值
orNew	OR 语句，拼接 + OR (字段=值)
eq	等于=
allEq	基于 map 内容等于=
ne	不等于<>
gt	大于>
ge	大于等于>=
lt	小于<
le	小于等于<=
like	模糊查询 LIKE
notLike	模糊查询 NOT LIKE
in	IN 查询
notIn	NOT IN 查询
isNull	NULL 值查询
isNotNull	IS NOT NULL
groupBy	分组 GROUP BY
having	HAVING 关键词
orderBy	排序 ORDER BY
orderAsc	ASC 排序 ORDER BY
orderDesc	DESC 排序 ORDER BY
exists	EXISTS 条件语句
notExists	NOT EXISTS 条件语句
between	BETWEEN 条件语句
notBetween	NOT BETWEEN 条件语句
addFilter	自由拼接 SQL
last	拼接在最后，例如：last("LIMIT 1")
     */
     /*
       Page<User> page = new Page<User>(1,2);
        QueryWrapper<User> queryWrapper = new QueryWrapper<>();
        queryWrapper.lambda().eq(User::getPhone, "18911024602");
        IPage<User> page1 = userMapper.selectPage(page, queryWrapper);
        return page1;
      */
}
